package community.hospital.convert;

import community.hospital.entity.User;
import community.hospital.entity.request.AddUserRequest;
import community.hospital.entity.request.ListUserRequest;
import community.hospital.entity.request.UpdatePasswordRequest;
import community.hospital.entity.request.UpdateUserRequest;
import community.hospital.entity.response.UserResponse;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * @Author：ydj
 * @Date：2023/1/16 21:17
 */
@Mapper
public interface UserConvert {
    UserConvert INSTANCE = Mappers.getMapper(UserConvert.class);

    User convertToUser(AddUserRequest request);

    UserResponse convertToResp(User user);

    User convertToUser(UpdateUserRequest request);

    User convertToUser(UpdatePasswordRequest request);

    User convertToUser(ListUserRequest request);



}
